from ultralytics import YOLO

model = YOLO(model="./runs/detect/train2/weights/last.pt")
model(source="./01.bmp",save=True)
import cv2
